package com.yun.blog.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yun.blog.bean.Album;
import com.yun.blog.dao.AlbumMapper;
import com.yun.blog.service.AlbumService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * title        : AphorismServiceImpl
 * projectName  : dantouBlog-back
 * description  : TODO
 * author       : simple
 * date         : 2022/11/26下午9:44
 */

@Service
public class AlbumServiceImpl extends ServiceImpl<AlbumMapper, Album>
        implements AlbumService {

    @Resource
    AlbumMapper albumMapper;

    @Override
    public Album getByAlbumId(Integer albumId) {
        return albumMapper.getByAlbumId(albumId);
    }

    @Override
    public <P extends IPage<Album>> P customPage(P page) {
        return albumMapper.customPage(page);
    }
}
